package com.atguigu.hellomp;

import com.atguigu.hellomp.entity.User;
import com.atguigu.hellomp.mapper.UserMapper;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

/**
 * @author 张智勇
 * @date 2025年08月13日 19:29
 */

@SpringBootTest
public class test1 {

    @Autowired
    UserMapper userMapper;


    @Test
    public void  a(){
//        List<User> myUsers = userMapper.selectMyUsers();
//        System.out.println(myUsers);
    }
    @Test
    public void testSelectById() {
        User user = userMapper.selectById(1);
        System.out.println(user);
    }
}
